package stackdriver
Import Path
github.com/K-Phoen/grabana/alert/queries/stackdriver (on go.dev)
Dependency Relation
imports 2 packages, and imported by one package
Package-Level Type Names (total 6)
Aligner specifies the operation that will be applied to the data points in
each alignment period in a time series.
See https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.alertPolicies#Aligner
func Alignment(aligner Aligner, alignmentPeriod string) Option
const AlignCount
const AlignCountFalse
const AlignCountTrue
const AlignDelta
const AlignFractionTrue
const AlignInterpolate
const AlignMax
const AlignMean
const AlignMin
const AlignNextOlder
const AlignNone
const AlignPercentChange
const AlignPercentile05
const AlignPercentile50
const AlignPercentile95
const AlignPercentile99
const AlignRate
const AlignStdDev
const AlignSum
func Eq(leftOperand string, rightOperand string) FilterOption
func Matches(leftOperand string, rightOperand string) FilterOption
func Neq(leftOperand string, rightOperand string) FilterOption
func NotMatches(leftOperand string, rightOperand string) FilterOption
func Filter(filters ...FilterOption) Option
Option represents an option that can be used to configure a stackdriver query.
func Aggregation(reducer Reducer) Option
func Alignment(aligner Aligner, alignmentPeriod string) Option
func Filter(filters ...FilterOption) Option
func GroupBys(groupBys ...string) Option
func Legend(legend string) Option
func Preprocessor(preprocessor PreprocessorMethod) Option
func Project(project string) Option
func TimeRange(from time.Duration, to time.Duration) Option
func Cumulative(ref string, metricType string, options ...Option) *Stackdriver
func Delta(ref string, metricType string, options ...Option) *Stackdriver
func Gauge(ref string, metricType string, options ...Option) *Stackdriver
PreprocessorMethod defines the available pre-processing options.
func Preprocessor(preprocessor PreprocessorMethod) Option
Reducer operation describes how to aggregate data points from multiple time
series into a single time series, where the value of each data point in the
resulting series is a function of all the already aligned values in the
input time series.
See https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.alertPolicies#reducer
func Aggregation(reducer Reducer) Option
const ReduceCount
const ReduceCountFalse
const ReduceCountFractionTrue
const ReduceCountTrue
const ReduceMax
const ReduceMean
const ReduceMin
const ReduceNone
const ReducePercentile05
const ReducePercentile50
const ReducePercentile95
const ReducePercentile99
const ReduceStdDev
const ReduceSum
Stackdriver represents a stackdriver query.
Builder sdk.AlertQuery
func Cumulative(ref string, metricType string, options ...Option) *Stackdriver
func Delta(ref string, metricType string, options ...Option) *Stackdriver
func Gauge(ref string, metricType string, options ...Option) *Stackdriver
func github.com/K-Phoen/grabana/alert.WithStackdriverQuery(query *Stackdriver) alert.Option
Package-Level Functions (total 15)
Aggregation defines how the time series will be aggregated.
Alignment defines how the time series will be aligned.
Cumulative represents a value accumulated over a time interval. Cumulative
measurements in a time series should have the same start time and
increasing end times, until an event resets the cumulative value to zero
and sets a new start time for the following points.
Delta represents the change in a value during a time interval.
func Eq(leftOperand string, rightOperand string) FilterOption
Filter allows to specify which time series will be in the results.
Gauge represents an instantaneous measurement of a value.
GroupBys defines a list of fields to group the query by.
Legend sets the legend format.
func Matches(leftOperand string, rightOperand string) FilterOption func Neq(leftOperand string, rightOperand string) FilterOption func NotMatches(leftOperand string, rightOperand string) FilterOption
Preprocessor defines how the time series should be pre-processed.
Project defines the GCP project to use for this target.
TimeRange sets the legend format.
Package-Level Constants (total 37)
const AlignCount Aligner = "ALIGN_COUNT" const AlignCountFalse Aligner = "ALIGN_COUNT_FALSE" const AlignCountTrue Aligner = "ALIGN_COUNT_TRUE" const AlignDelta Aligner = "ALIGN_DELTA" const AlignFractionTrue Aligner = "ALIGN_FRACTION_TRUE" const AlignInterpolate Aligner = "ALIGN_INTERPOLATE" const AlignmentGrafanaAuto = "grafana-auto" const AlignmentStackdriverAuto = "stackdriver-auto" const AlignNextOlder Aligner = "ALIGN_NEXT_OLDER" const AlignPercentChange Aligner = "ALIGN_PERCENT_CHANGE" const AlignPercentile05 Aligner = "ALIGN_PERCENTILE_05" const AlignPercentile50 Aligner = "ALIGN_PERCENTILE_50" const AlignPercentile95 Aligner = "ALIGN_PERCENTILE_95" const AlignPercentile99 Aligner = "ALIGN_PERCENTILE_99" const AlignStdDev Aligner = "ALIGN_STDDEV" const PreprocessDelta = "delta" const PreprocessRate = "rate" const ReduceCount Reducer = "REDUCE_COUNT" const ReduceCountFalse Reducer = "REDUCE_COUNT_FALSE" const ReduceCountFractionTrue Reducer = "REDUCE_FRACTION_TRUE" const ReduceCountTrue Reducer = "REDUCE_COUNT_TRUE" const ReduceMean Reducer = "REDUCE_MEAN" const ReduceNone Reducer = "REDUCE_NONE" const ReducePercentile05 Reducer = "REDUCE_PERCENTILE_05" const ReducePercentile50 Reducer = "REDUCE_PERCENTILE_50" const ReducePercentile95 Reducer = "REDUCE_PERCENTILE_95" const ReducePercentile99 Reducer = "REDUCE_PERCENTILE_99" const ReduceStdDev Reducer = "REDUCE_STDDEV"![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |